package com.nuoniu.sibanyun.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 字典数据表
 * </p>
 *
 * @author baiqiang
 * @since 2020-05-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_dict")
@ApiModel(value="SysDictData对象", description="字典数据表")
public class SysDictData extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "字典类型ID")
    @TableField("dict_type_id")
    private Integer dictTypeId;

    @ApiModelProperty(value = "字典值")
    @TableField("dict_label")
    private String dictLabel;

    @ApiModelProperty(value = "字典键")
    @TableField("dict_value")
    private String dictValue;

    @ApiModelProperty(value = "字典类型")
    @TableField("dict_type")
    private String dictType;

    @ApiModelProperty(value = "系统内置（1是 0否）")
    @TableField("is_sys")
    private Boolean isSys;

    @ApiModelProperty(value = "是否系统默认 0否 1是")
    @TableField("is_default")
    private Boolean isDefault;

    @ApiModelProperty(value = "显示顺序")
    @TableField("show_sort")
    private Integer showSort;

    @ApiModelProperty(value = "字典描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "css样式（如：color:red)")
    @TableField("css_style")
    private String cssStyle;

    @ApiModelProperty(value = "css类名（如：red）")
    @TableField("css_class")
    private String cssClass;

    @ApiModelProperty(value = "状态（0正常 1删除 2停用）")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_date")
    private LocalDateTime updateDate;

    @ApiModelProperty(value = "备注信息")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "租户ID")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "租户名称")
    @TableField("company_name")
    private String companyName;


}
